//
//  CustomeButton.h
//  YJMiGao
//
//  Created by 张龙 on 16/12/5.
//  Copyright © 2016年 张龙. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, KRelativeAlignment) {
    KRelativeAlignmentUp = 0,
    KRelativeAlignmentDown = 1,
    KRelativeAlignmentLeft = 2,
    KRelativeAlignmentRight = 3,
};  //以图片为基准,传文字所在的方向

@interface CustomeButton : UIButton

- (id)initWithRelativeAlignment:(KRelativeAlignment )relative titleNormal:(NSString *)titleNormal imageNormal:(NSString*)imageNormal frame:(CGRect)frame titleRect:(CGRect )titleRect imageRect:(CGRect)imageRect;
- (id)initWithRelativeAlignment:(KRelativeAlignment )relative titleNormal:(NSString *)titleNormal imageNormal:(NSString*)imageNormal frame:(CGRect)frame titleRect:(CGRect )titleRect imageRect:(CGRect)imageRect textAlignment:(NSTextAlignment)textAlignment font:(UIFont *)font titleColor:(UIColor*)titleColor;
@property(nonatomic,copy)NSString *fontText;//字体大小
@property(nonatomic,assign)KRelativeAlignment relative;
@property(nonatomic,assign)CGRect imageRect;    //图片的size
@property(nonatomic,assign)CGRect titleRect;    //文字的size
@end
